using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace BusinessObjects
{

    public class BoPhan: BaseObject
	{
		
		private string _maQuanLy = String.Empty;
		private string _tenBoPhan = String.Empty;
		private ELoaiBoPhan _loaiBoPhan;
		private BoPhan _trucThuoc;
        
		
		public BoPhan()
		{
            _loaiBoPhan = ELoaiBoPhan.PhongKhoa;
		}

        #region Public Properties
		
		public string MaQuanLy
		{
            get
            {
                return _maQuanLy;
            }
            set
            {
                if (_maQuanLy == value)
                    return;
                _maQuanLy = value;
                OnPropertyChanged("MaQuanLy");
            }
		}

		public string TenBoPhan
		{
            get
            {
                return _tenBoPhan;
            }
            set
            {
                if (_tenBoPhan == value)
                    return;
                _tenBoPhan = value;
                OnPropertyChanged("TenBoPhan");
            }
		}

		public ELoaiBoPhan LoaiBoPhan
		{
            get
            {
                return _loaiBoPhan;
            }
            set
            {
                if (_loaiBoPhan == value)
                    return;
                _loaiBoPhan = value;
                OnPropertyChanged("LoaiBoPhan");
            }
		}

		public BoPhan TrucThuoc
		{
            get
            {
                return _trucThuoc;
            }
            set
            {
                if (_trucThuoc == value)
                    return;
                _trucThuoc = value;
                OnPropertyChanged("TrucThuoc");
            }
		}
		#endregion
		
	}
	
}

